/**
 * @description 定义用户相关接口
 */

import ajax from "./ajax";
import {USER_LIST_URL ,USER_DELETE_URL ,USER_UPDATE_URL , USER_ADD_URL } from '@/config/urls.conf'
export function userListApi(params){
    return ajax({
        url:USER_LIST_URL,
        params
    })
}

export function userDeleteApi(id){
    return ajax({
        url:USER_DELETE_URL+ id,
        method:'delete',
    })
}

export function userUpdateApi(data){
    return ajax({
        url:USER_UPDATE_URL,
        method:'post',
        data
    })
}

export function userAddApi(data){
    return ajax({
        url:USER_ADD_URL,
        method:'put',
        data
    })
}

